Automattic\JetpackCRM\Woo_Sync D

Total Complexity 224
Dependencies 12
Dependents 0
Total lines 2,337
Lines of code 989
Logical lines of code 529
Comment lines 648
Methods 73
Properties 15

Methods 73

Method Rating Maintainability Complexity Lines of code
add_sync_site()
A
41 15 56
catch_add_store_auth()
A
45 11 39
override_crm_external_source_infobox()
A
47 11 32
migrate_52()
A
45 10 42
update_sync_site()
A
44 10 42
get_woocommerce_client()
A
48 9 36
verify_api_connection()
A
53 10 21
get_default_status_for_order_obj()
A
51 8 28
include_filter_buttons()
S
54 7 20
get_active_sync_sites()
S
51 6 27
render_pay_via_woo_checkout_button()
S
50 6 26
translate_order_status_to_obj_status()
S
55 6 19
load_ajax()
S
58 6 15
get_product_list_via_local_store()
S
48 4 35
append_woo_products_to_crm_product_index()
S
59 5 14
is_order_from_local_by_external_source()
S
60 5 13
init_features()
S
54 4 21
get_crm_woo_latest_woo_transaction()
S
57 4 17
get_crm_woo_latest_woo_transaction_string()
S
56 4 16
generate_site_key()
S
59 4 15
get_product_list_via_api()
S
54 3 20
get_future_woo_bookings_for_object()
S
57 3 17
get_external_woo_url_for_oauth()
S
53 2 22
render_learn_menu()
S
55 2 20
add_settings_tab()
S
57 2 17
remove_sync_site()
S
64 3 9
new_contact_log_override()
S
63 3 10
compare_sync_sites_for_order()
S
71 3 5
is_hub_page()
S
64 3 10
get_transaction_from_order_num()
S
61 2 12
increment_sync_site_count()
S
62 2 11
transaction_query_quickfilter_addition()
S
62 2 11
invoice_query_quickfilter_addition()
S
62 2 11
contact_query_quickfilter_addition()
S
62 2 11
get_woo_order_mapping_types()
S
55 1 22
init_hooks()
S
56 1 16
instance()
S
72 2 6
get_active_sync_site()
S
69 2 7
woo_order_status_mapping()
S
58 1 15
get_sync_site_attribute()
S
69 2 7
process_error()
S
71 2 6
get_order_number_from_object_meta()
S
67 2 8
get_external_woo_admin_url()
S
71 2 6
get_woo_order_statuses()
S
60 1 13
get_jpcrm_woo_latest_stats()
S
62 1 12
add_wp_pages()
S
61 1 12
__construct()
S
65 1 11
get_local_woo_admin_url()
S
80 1 3
set_sync_site_attribute()
S
68 1 7
webhook_process_some_data()
S
91 1 2
add_webhook_actions()
S
72 1 5
definitions()
S
81 1 4
run_migrations()
S
82 1 3
init_endpoints()
S
80 1 3
resume_sync_site()
S
68 1 7
pause_sync_site()
S
79 1 3
init_settings()
S
78 1 3
get_settings()
S
81 1 3
include_woocommerce_rest_api()
S
80 1 3
register_styles_scripts()
S
74 1 4
add_listener_action()
S
77 1 4
default_settings()
S
79 1 3
generate_site_key_string()
S
66 1 8
add_tools_menu_sub_item_link()
S
72 1 5
load_admin_page()
S
80 1 3
get_order_count_via_local_store()
S
66 1 9
compare_sync_sites_for_order_last_sync()
S
79 1 3
get_crm_woo_contact_count()
S
65 1 10
get_crm_woo_transaction_count()
S
65 1 10
get_crm_woo_transaction_total()
S
65 1 10
get_prefix()
S
75 1 4
get_invoice_meta()
S
75 1 4
add_segments_condition_category_positions()
S
73 1 5